package com.briup.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

/**
 * <p>
 *      表示学生类
 * </p>
 *
 * @author briup-teacher
 * @since 2023-11-13
 */
@TableName("t_student")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.ASSIGN_ID) //使用雪花算法
    private Long id;

    private String name;

    @TableField(select = false) //不进行查询列信息
    @TableLogic
    private Integer deleted;//逻辑删除字段属性

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }



    @Override
    public String toString() {
        return "Student{" +
            "id = " + id +
            ", name = " + name +
        "}";
    }
}
